home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Python 1.4 / Python 1.4 source / Mac / Tools / twit / xxtwit_stack.py < prev   
Encoding:
Text File  |  1996-10-09  |  1.5 KB  |  67 lines  |  [TEXT/Pyth]

  1. #
  2. # Windowsystem dependent part of Stack browser window
  3. #
  4. import sys
  5. import TwitCore
  6.  
  7. class StackBrowser(TwitCore.StackBrowser):
  8.     """The stack-browser dialog - Window-dependent part"""
  9.     
  10.     def open(self):
  11.         """Open window, create widgets"""
  12.         pass
  13.  
  14.         self.mi_open()
  15.         
  16.     def setsource(self, msg):
  17.         """Set sourcewindow to display self.cur_source, or msg if None"""
  18.         if self.cur_source:
  19.             pass # Show current source, fill source window
  20.         else:
  21.             pass # Show msg, clear source window
  22.         
  23.     def source_setbreaks(self, list):
  24.         """Show breakpoints at linenumbers in list"""
  25.         pass
  26.  
  27.     def source_setline(self, lineno, icon):
  28.         """Flag line 'lineno' with icon 'icon'"""
  29.         pass
  30.         
  31.     def stack_setcontent(self, names, locations):
  32.         """Load stackframebrowser with names and locations"""
  33.         pass
  34.  
  35.     def stack_select(self, number):
  36.         """Select stackframe number (or None)"""
  37.         pass
  38.  
  39.     def setvars(self):
  40.         """Load self.cont_varnames, self.cont_varvalues into browser"""
  41.         pass 
  42.         
  43.     def setexception(self, name, value):
  44.         """Show exception (name, value) to user"""
  45.         if name == None:
  46.             pass # Set no exception
  47.         else:
  48.             pass # set exception
  49.         if value == None:
  50.             pass # Set value
  51.         else:
  52.             pass # Set no value
  53.             
  54.     def setprogramstate(self, msg):
  55.         """Show program state 'msg' to user"""
  56.         pass
  57.             
  58.     def set_var_buttons(self):
  59.         """Update buttons to show self.show_complex and self.show_system
  60.         pass
  61.  
  62.     def close(self):
  63.         """Close window"""
  64.         self.parent.module_dialog = None
  65.         pass # close window, widgets, etc.
  66.  
  67.